Class yassl.assignnode
All Packages This Package Previous Next
Class yassl.assignnode
java.lang.Object
|
+----yassl.pnode
|
+----yassl.unarynode
|
+----yassl.binarynode
|
+----yassl.assignnode
-
public class
assignnode
-
extends binarynode
Assignments of all types are subclassed from here.
These operators are right associative, so the wiggling
needs to be a little different.
-
assignnode(int, pnode, pnode)
-
-
eval(Env)
-
an assignment simply overwrites any preexisting information
in the binding of the local environment.
-
help(Env)
-
Return a string to be used in help messages about a
particular node.
-
wiggle()
-
Wiggling for assignment nodes (+=, =, *= ...) works
by making sure the operator at the root has strictly
smaller precedence than its left child.
assignnode
public assignnode(int type,
pnode left,
pnode right)
wiggle
public pnode wiggle()
-
Wiggling for assignment nodes (+=, =, *= ...) works
by making sure the operator at the root has strictly
smaller precedence than its left child.
-
Overrides:
-
wiggle in class binarynode
help
public String help(Env e)
-
Return a string to be used in help messages about a
particular node.
-
Overrides:
-
help in class pnode
eval
public pnode eval(Env e) throws yasslError
-
an assignment simply overwrites any preexisting information
in the binding of the local environment.
-
Overrides:
-
eval in class pnode
All Packages This Package Previous Next